import request from '@/utils/request'

// 新增阿里云存储
export const createAliContent = (data) => request({
  url: '/admin/ali/content',
  method: 'post',
  data
})

// 删除阿里云存储
export const deleteAliContent = (data, configId) => request({
  url: `/admin/ali/content?configId=${configId}`,
  method: 'delete',
  data
})

// 修改阿里云存储
export const updateAliContent = (data) => request({
  url: '/admin/ali/content',
  method: 'put',
  data
})

// 分页查询阿里云存储
export const pageQuery = (data) => request({
  url: '/admin/ali/content/page',
  method: 'post',
  data
})

// 批量导出
export const exportAliContent = (data) => request({
  url: '/admin/ali/content/export',
  method: 'post',
  data,
  responseType: 'blob'
})

